/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package portal;

import java.util.Random;

/**
 *
 * @author rory
 */
public class InterfaceGenerator {

    Workflow workflow;

    public InterfaceGenerator() {
    }

    public Workflow getWorkflow() {
        return workflow;
    }

    public void setWorkflow(Workflow wf) {
        workflow = wf;
    }

    public static void generate() {

        Workflow workflow = new Workflow();

        Input[] inps = new Input[1];
        Input inp = new Input();
        inp.setType("text");


        Random generator = new Random();
        int r = generator.nextInt();
        String name = Integer.toString(r);
        System.out.println(name);
        inp.setName(name);

        inps[0] = inp;
        workflow.setInputs(inps);
    }
}
